package com.boot.service;

import com.boot.entity.*;

import java.util.List;

public interface IAccountManagementService {
    List<User> findAllUser();

    List<User> findAllUser(String key);

    int findUserCount();

    int findUserCount(String key);

    int delUser(int id);

    User findUserById(int id);

    int updateUser(User user);

    int addUser(User user);

    User findUserByUserName(String username);


    Company findCompanyById(int id);

    List<Company> findAllCompany();

    List<Department> findAllDepartment();

    int nextPurchapplyID();



    int addPurchaseRequest(Purchapply purchapply, PurchapplyDetail purchapplyDetail, CoalQuality coalQuality);


    int modifyPurchaseRequest(Purchapply purchapply, PurchapplyDetail purchapplyDetail, CoalQuality coalQuality);


    int deletePurchaseRequest(int purchapply_id);



    List<PurchapplyDetail> findPurchapplyDetailByCompanyId(int company_id);

    int findPurchapplyDetailCountByCompanyId(int company_id);

    Purchapply findPurchapplyById(int id);

    PurchapplyDetail findPurchapplyDetailById(int purchapply_id);

    CoalQuality findCoalQualityById(int purchapply_id);
}
